package com.hua.api.modules.express.rest;

import com.hua.api.core.framework.annotation.AnonymousAccess;
import com.hua.api.core.framework.util.Result;
import com.hua.api.modules.express.service.impl.ElemeExpressInfoServiceImpl;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;

@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/eleme")
public class ElemeController {


    public final ElemeExpressInfoServiceImpl elemeExpressInfoService;


    @AnonymousAccess
    @ResponseBody
    @PostMapping(value = "callback")
    public Result callback(HttpServletRequest request){
        log.info("达达回调消息 callback");
        return Result.of("success");
    }




}
